package com.avantis.admin;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

@SpringBootApplication
@EnableCaching
public class YaphetsAdminApplication {

    public static void main(String[] args) throws IOException {
        //更改properties配置文件名称,避免依赖冲突
//        Properties properties = new Properties();
//        InputStream in = YaphetsAdminApplication.class.getClassLoader().getResourceAsStream("admin.properties");
//        properties.load(in);
//        SpringApplication app = new SpringApplication(YaphetsAdminApplication.class);
//        app.setDefaultProperties(properties);
//        app.run(args);
        new SpringApplication(YaphetsAdminApplication.class).run(args);
    }

}
